package com.service.impl;

import com.dao.IProductDao;
import com.domain.Product;
import com.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 项目名称：ssm21
 * 类 名 称：ProductServiceImpl
 * 类 描 述：TODO
 * 创建时间：2020-01-15 09:36
 * 创 建 人：jacksonmike
 */
@Service
@Transactional
public class ProductServiceImpl implements IProductService {
    @Autowired
    private IProductDao iProductDao;
    @Override
    public List<Product> findAll() throws Exception {
        return iProductDao.findAll();
    }

    @Override
    public void save(Product product) throws Exception{
        iProductDao.save(product);
    }
}
